<?php
/**
 * Created by PhpStorm.
 * User: wudiying
 * Date: 2018/11/19
 * Time: 下午10:36
 */

namespace IMooc;


class Loader
{
    static function autoload($class){
        //$class是包含"命名空间和类名"的字符串 [斜杠和反斜杠转换]
        require BASEDIR.'/'.str_replace('\\','/',$class).'.php';
    }
}